//
//  ViewController.swift
//  CLOCamera
//
//  Created by 尤兵 on 05/17/2018.
//  Copyright (c) 2018 尤兵. All rights reserved.
//

import UIKit
import CLOCamera

class ViewController: UIViewController,CLOCameraDelegate {


    
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }
    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        let vc = CLOCameraMainVC.viewFromNib()
        vc.delegate = self
        present(vc, animated: true, completion: nil)
    }
    
    func cameraDidFinishRecordImage(image: UIImage, imagePath: String) {
        print(imagePath)
    }
    func cameraDidFinishRecordVideo(tempPath: String, filePath: String, coverImage: UIImage) {
        
    }
}

